package service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.ClassDao;
import po.ClassRoom;
import service.ClassService;
@Service("classService")
@Transactional
public class ClassServiceImpl implements ClassService {
	@Autowired
	private ClassDao classDao;

	@Override
	public List<ClassRoom> getClassList() {
		
		return classDao.getList();
	}

	@Override
	public int deleteClass(Integer classid) {
		
		return classDao.delClass(classid);
	}
	@Override
	public int addClass(ClassRoom classRoom) {
		
		return classDao.addClass(classRoom);
	}

	@Override
	public ClassRoom getCLassId(Integer id) {
	
		return classDao.getCLassId(id);
	}
	
	@Override
	public int updateClass(ClassRoom classRoom) {
		return classDao.updateClass(classRoom);
	}

	@Override
	public List<ClassRoom> findList(String data) {
		return classDao.findList(data);
	}




}
